/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.edu.ufcg.dsc.lsi.vademecum.context.provider;

import java.util.Vector;
import javax.microedition.lcdui.List;

/**
 *
 * @author Hugo
 */
public abstract class AbstractRawDataProvider implements RawDataProviderIF {

    private Vector listeners;

    public void addRawDataListener(RawDataListener listener) {
        if(listeners == null)
            listeners = new Vector();
        listeners.addElement(listener);
    }

    public void removeRawDataListener(RawDataListener listener) {
        if(listeners != null)
            listeners.removeElement(listener);
    }

    public Vector getRawDataListeners() {
        return listeners;
    }

}
